Serial interface connecting circuit

ABSTRACT

A serial interface connecting circuit includes a first IC ( 10 ) with a signal transmitting and a signal receiving terminal, a second IC ( 20 ) with a signal transmitting and a signal receiving terminal, and a connecting circuit ( 30 ) coupled between the first IC ( 10 ) and the second IC ( 20 ). The connecting circuit ( 30 ) includes a first photocoupler ( 16 ) having a first luminous element and a first optical receiving block, an anode of the first luminous element is coupled to a first power source (Vcc), a cathode of the first luminous element is coupled to the signal transmitting terminal of the first IC ( 10 ), a collector of the first optical receiving block is coupled to a second power source (Vdd) and the signal receiving terminal of the second IC ( 20 ), and an emitter of the first optical receiving block is coupled to ground.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to serial interface connecting circuits, and particularly to a serial interface connecting circuit supporting communications between different types of serial interfaces.

2. Description of Related Art

Serial interfaces are desirable for connections between communications of Integrated circuits (ICs) that require relatively low data transfer rates because serial interfaces require few input/output pins. For example, Universal Asynchronous Receiver/Transmitter (UART) devices, Serial Peripheral Interface (SPI) bus devices, Inter Integrated Circuit (IIC) bus devices, and System Management (SM) bus devices usually use serial interfaces. However, the serial interfaces of different serial devices often have different electrical characteristics, so different transition circuits or ICs are needed to connect these serial devices, which increases costs of the devices.

What is needed, therefore, is a cost-saving serial interface connecting circuit.

SUMMARY OF THE INVENTION

An exemplary serial interface connecting circuit includes a first IC with a signal transmitting and a signal receiving terminal, a second IC with a signal transmitting and a signal receiving terminal, and a connecting circuit coupled between the first IC and the second IC. The connecting circuit includes a first photocoupler having a first luminous element and a first optical receiving block, an anode of the first luminous element is coupled to a first power source, a cathode of the first luminous element is coupled to the signal transmitting terminal of the first IC, a collector of the first optical receiving block is coupled to a second power source and the signal receiving terminal of the second IC, and an emitter of the first optical receiving block is coupled to ground.

Other objects, advantages and novel features of the present invention will become more apparent from the following detailed description of preferred embodiments when taken in conjunction with the accompanying drawings, in which:

BRIEF DESCRIPTION OF THE DRAWINGS

The drawing is a circuit diagram of one embodiment of a serial interface connecting circuit in accordance with the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Referring to the drawing, a serial interface connecting circuit in accordance with an embodiment of the present invention includes a first IC 10 having a signal transmitting terminal TXD and a signal receiving terminal RXD, a second IC 20 with a signal transmitting terminal TDO and a signal receiving terminal TDI, and a connecting circuit 30 coupled between the first IC 10 and the second IC 20.

In this embodiment, the connecting circuit 30 includes a first photocoupler 16 having a first luminous element like an LED and a first optical receiving block. An anode 1 of the first luminous element is coupled to a first power source Vcc, and a cathode 2 of the first luminous element is coupled to the signal transmitting terminal TXD of the first IC 10 via a resistor R1. A collector 4 of the first optical receiving block is coupled to the signal receiving terminal TDI of the second IC 20, and a second power source Vcc via a resistor R2. An emitter 3 of the first optical receiving block is coupled to ground.

The connecting circuit 30 further includes a second photocoupler 19 having a second luminous element and a second optical receiving block. An anode 1′ of the second luminous element is coupled to the second power source Vdd, and a cathode 2′ of the second luminous element is coupled to the signal transmitting terminal TDO of the second IC 20 via a resistor R3. A collector 4′ of the second optical receiving block is coupled to the signal receiving terminal RXD of the first IC 10, and the first power source Vcc via a resistor R4. An emitter 3′ of the second optical receiving block is coupled to ground.

The first and second power sources Vcc and Vdd are respectively 12 volt and 5 volt DC sources for driving the first and the second photocouplers 16 and 19.

When the signal transmitting terminal TXD of the first IC 10 sends a high-level voltage signal through the connecting circuit 30, the first luminous element of the first photocoupler 16 is turned off and the first optical receiving block is turned off, therefore the signal receiving terminal TDI of the second IC 20 receives a high-level voltage from the second power source Vdd. When the signal transmitting terminal TXD of the first IC 10 sends a low-level voltage signal through the connecting circuit 30, the first luminous element of the first photocoupler 16 is turned on and the first optical receiving block is turned on, therefore the signal receiving terminal TDI of the second IC 20 receives a low-level voltage from ground. Thus, high-level or low-level voltage signals sent by the signal transmitting terminal of the first IC 10 can be received at the signal receiving terminal of the second IC 20, different level of voltage signals can be transmitted from the first IC 10 to the second IC 20 through the connecting circuit 30.

When the second IC 20 sends a feedback electrical signal to the first IC 10 via the connecting circuit 30, that is, when the signal transmitting terminal TDO of the second IC 20 sends a high-level voltage signal through the connecting circuit 30, the second luminous element of the second photocoupler 19 is turned off and the second optical receiving block is turned off, therefore the signal receiving terminal RXD of the first IC 10 receives a high-level voltage from the first power source Vcc. When the signal transmitting terminal TDO of the second IC 20 sends a low-level voltage signal through the connecting circuit 30, the second luminous element is turned on and the second optical receiving block is turned on, therefore the signal receiving terminal RXD of the first IC 10 receives a low-level voltage from ground. Thus, high-level or low-level voltage signals sent by the signal transmitting terminal TDO of the second IC 20 can be received at the signal receiving terminal RXD of the first IC 10, different level of voltage signals can be transmitted from the second IC 20 to the first IC 10 through the connecting circuit 30.

In this embodiment, the first IC 10 is a Serial Peripheral Interface (SPI) bus device, and the second IC 20 is a Universal Asynchronous Receiver/Transmitter (UART) device.

The foregoing description of the exemplary embodiment of the invention has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiment was chosen and described in order to explain the principles of the invention and its practical application so as to enable others skilled in the art to utilize the invention and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those skilled in the art to which the present invention pertains without departing from its spirit and scope. Accordingly, the scope of the present invention is defined by the appended claims rather than the foregoing description and the exemplary embodiment described therein. 

1. A serial interface connecting circuit comprising: a first Integrated circuit (IC) with a signal transmitting terminal; a second IC with a signal receiving terminal; and a connecting circuit coupled between the first and second ICs for transmitting electrical signals between the first and second ICs, the connecting circuit comprising a first photocoupler having a first luminous element and a first optical receiving block, an anode of the first luminous element being coupled to a first power source, a cathode of the first luminous element being coupled to the signal transmitting terminal of the first IC, a collector of the first optical receiving block being coupled to a second power source and the signal receiving terminal of the second IC, and an emitter of the first optical receiving block being coupled to ground.
 2. The serial interface connecting circuit as claimed in claim 1, wherein voltage of the first power source is approximately 12 volts, and voltage of the second power source is approximately 5 volts.
 3. The serial interface connecting circuit as claimed in claim 1, wherein a first resistor is coupled between the signal transmitting terminal of the first IC and the cathode of the first luminous element, and a second resistor is coupled between the second power source and the collector of the first optical receiving block.
 4. The serial interface connecting circuit as claimed in claim 1, wherein the first IC further comprises a signal receiving terminal, the second IC further comprises a signal transmitting terminal, the connecting circuit further comprises a second photocoupler having a second luminous element with an anode coupled to the second power source and a cathode coupled to the signal transmitting terminal of the second IC, and a second optical receiving block with a collector coupled to the first power source and the signal receiving terminal of the first IC, and an emitter coupled to ground.
 5. The serial interface connecting circuit as claimed in claim 4, wherein a resistor is coupled between the signal transmitting terminal of the second IC and the cathode of the second luminous element, and another resistor is coupled between the first power source and the collector of the second optical receiving block.
 6. The serial interface connecting circuit as claimed in claim 1, wherein the first IC is a Serial Peripheral Interface (SPI) bus device, and the second IC is a Universal Asynchronous Receiver/Transmitter (UART) device.
 7. A serial interface connecting circuit comprising: a first Integrated circuit (IC) having a signal transmitting terminal, and a signal receiving terminal connected to a first power source; a second IC having a signal receiving terminal connected to a second power source, and a signal transmitting terminal; and a connecting circuit coupled between the first and second ICs for transmitting electrical signals between the first and second ICs, the connecting circuit comprising a first photocoupler connected between the signal transmitting terminal of the first IC and the signal receiving terminal of the second IC such that when the signal transmitting terminal of the first IC sends a high-level voltage signal to the first photocoupler the signal receiving terminal of the second IC receives a high-level voltage from the second power source and when the signal transmitting terminal of the first IC sends a low-level voltage signal to the first photocoupler the signal receiving terminal of the second IC receives a low-level voltage from the first photocoupler, and a second photocoupler connected between the signal transmitting terminal of the second IC and the signal receiving terminal of the first IC such that when the signal transmitting terminal of the second IC sends a high-level voltage signal to the second photocoupler the signal receiving terminal of the first IC receives a high-level voltage from the first power source and when the signal transmitting terminal of the second IC sends a low-level voltage signal to the second photocoupler the signal receiving terminal of the first IC receives a low-level voltage from the second photocoupler.
 8. The serial interface connecting circuit as claimed in claim 7, wherein the first photocoupler has a first luminous element and a first optical receiving block, the first luminous element comprising an anode coupled to the first power source, a cathode coupled to the signal transmitting terminal of the first IC, the first optical receiving block having a collector coupled to a node between the second power source and the signal receiving terminal of the second IC, and an emitter coupled to ground.
 9. The serial interface connecting circuit as claimed in claim 8, wherein the second photocoupler has a second luminous element and a second optical receiving block, the second luminous element comprising an anode coupled to the second power source, a cathode coupled to the signal transmitting terminal of the second IC, the second optical receiving block comprising a collector coupled to a node between the first power source and the signal receiving terminal of the first IC, and an emitter coupled to ground. 